<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" href="./pages/styles/style2.css" />
<jsp:useBean id="roleListBean" scope="session"
	class="edu.msg.jthr.web.beans.RoleListBean"></jsp:useBean>
<title>Add User</title>
</head>


<body>
	<jsp:directive.include file="Header.jsp" />
	<jsp:directive.include file="Navigation.jsp" />
	<div class="content">
		<form action="./AddUser" method="post" class="add">
			<h1>
				Add User <img src="./pages//images/logo.png" align="right"
					width="130" height="40">
			</h1>

			<label> <span>Firstname* :</span> <input id="firstname"
				type="text" name="firstname" placeholder="Enter your firstname" />
			</label> <label> <span>Lastname* :</span> <input id="lastname"
				type="text" name="lastname" placeholder="Enter your lastname" />
			</label> <label> <span>Phone number :</span> <input id="telhome"
				type="text" name="telhome"
				placeholder="Enter your home phone number" />
			</label> <label> <span>Mobile number* :</span> <input id="telmob"
				type="text" name="telmob"
				placeholder="Enter your mobile phone number" />
			</label> <label> <span>E-mail* :</span> <input id="email" type="text"
				name="email" placeholder="Enter your e-mail address" />
			</label> <label> <span>Function :</span> <input id="function"
				type="text" name="function"
				placeholder="Enter your function at the company" />
			</label> <label> <span>Description :</span> <textarea
					id="description" type="text" name="description"
					placeholder="Enter some description about the user"></textarea>
			</label> <label> <span>Password :</span> <input id="password"
				type="password" name="password"
				placeholder="Define password for user" />
			</label> <label> <span>Choose role(s)* :</span> <c:forEach var="role"
					items="${roleListBean.roleList}">
					<input type="checkbox" name="roles" value="${role}">${role}</input>
				</c:forEach>
			</label> <label> <span>&nbsp;</span> <input name="add_button"
				type="submit" class="button" value="Add" /> <input type="button"
				class="button" value="Cancel"
				onclick="window.location.href='AddUser.jsp'" />
			</label>

		</form>
	</div>
</body>
</html>